<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('物资管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-feed-depot" th:object="${depot}">
		<input name="feedId"  th:field="*{feedId}" type="hidden"  />

		<div class="form-group">
			<label class="col-sm-3 control-label">饲喂时间：</label>
			<div class="col-sm-8">
				<input id="createTime" data-format="yyyy-MM-dd HH:mm:ss"  name="createTime" placeholder="请选择时间"  th:value="*{#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" th:class="time-input" >

				<!-- <input id="createTime" name="createTime" class="form-control" type="text">-->
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">经手人：</label>
			<div class="col-sm-8">
				<input id="createBy" name="createBy" class="form-control" type="text" th:value="${userName}">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">领取人：</label>
			<div class="col-sm-8">
				<!--<select id="receiver" class="form-control select2-multiple" name="receiver" >
					<option th:each="user:${users}" th:value="${user.userId}" th:text="${user.userName}" th:disabled="${user.status == '1'}"></option>
				</select>-->

				<input class="form-control" type="text" name="receiver" id="receiver" th:value="${userName}">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-3 control-label">喂养人：</label>
			<div class="col-sm-8">
				<input id="exeUser" name="exeUser" class="form-control" type="text" th:value="${userName}">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label ">数量：</label>
			<div class="col-sm-8">
				<input class="form-control" type="number" name="outputAmount" onkeyup=" value=value.replace(/^((\d+\.\d*[1-9]\d{1}))$/,'')" min="0" required step="0.1"/>
			</div>
		</div>



		<!--<div class="form-group">
			<label class="col-sm-3 control-label ">数量</label>
			<div class="col-sm-8">
				<input class="form-control" type="number" name="outputAmount" />
			</div>
		</div>-->
		<!--<input name="goodsId"  th:field="*{stockAmout}" type="hidden"  />-->

		<!--<div class="form-group">
			<label class="col-sm-3 control-label">领取人</label>
			<div class="col-sm-8">
				<select id="receiver" class="form-control select2-multiple" name="receiver" >
					<option th:each="user:${users}" th:value="${user.userId}" th:text="${user.userName}" th:disabled="${user.status == '1'}"></option>
				</select>

				&lt;!&ndash;<input class="form-control" type="text" name="receiver" id="receiver" >&ndash;&gt;
			</div>
		</div>-->
		<div class="form-group">
			<label class="col-sm-3 control-label">备注：</label>
			<div class="col-sm-8">
				<textarea class="form-control" type="text" name="remark" id="remark" rows="4" > </textarea>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<script>
	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(ctx + "system/ncChickenFeed/depot", $('#form-feed-depot').serialize());
		}
	}
</script>
</body>

</html>
